package com.k8.rpc.cluster.loadBalance;

import com.k8.common.annotation.SPI;
import com.k8.rpc.directory.Directory;
import com.k8.rpc.invoke.Invoker;

/**
 * @Author: k8
 * @CreateTime: 2025-03-20
 * @Version: 1.0
 */
@SPI
public interface LoadBalance<T> {//轮询查找

    void pushInvokersDirectory(Directory<T> directory);

    Invoker<T> nextInvoker();

    int getSize();

}
